package com.dashu.authority.servie;

import java.util.List;
import java.util.Map;

import com.dashu.authority.entity.Role;
import com.dashu.authority.exception.AuthorityException;

public interface RoleService extends BaseService< Role> {
	public List<Role> queryAllByExample(Role entity,int pageNum, int pageSize) throws AuthorityException;		
	public Map<String, Object> insertEntity(Role entity)throws AuthorityException;	
	public Map<String, Object> updateEntity(Role entity)throws AuthorityException;	
	public Map<String, Object> deleteByIds(Integer[] ids) throws AuthorityException;
	public Map<String, Object> updateStatus(Integer[] ids,String status) throws AuthorityException;
	public List<Role> queryAllByUserId(Integer userId, int pageNum, int pageSize) throws AuthorityException;
	public List<Role> queryAllByNoUserId(Integer userId, int pageNum, int pageSize) throws AuthorityException;
	public Role queryById(Integer id) throws AuthorityException;
}
